package com.mike.billingserver.util;

import com.mike.billingserver.dto.RequestDTO;

/**
 * @author xiaozefeng
 * @date 2018-12-18 16:13
 */
public class ContextHolder {

    private final static ThreadLocal<RequestDTO> local = new ThreadLocal<>();


    public static void set(RequestDTO requestDTO) {
        local.set(requestDTO);
    }

    public static RequestDTO get() {
        return local.get();
    }

    public static void remove() {
        local.remove();
    }

}
